<?php include("connectDB.php");?>
<?php
	$name=$_POST['shop_name'];
	$des=$_POST['des'];
	$notice=$_POST['notice'];
	
	$sql="update shopping.shop set s_name='".$name."',s_des='".$des."',s_notice='".$notice."' where s_id=1";
	$result=mysql_query($sql,$conn);
	if($result){
	$url="http://localhost/shopping/project/page/admin/adminHome.php";
	header("Location:$url");}else{
		$url="http://www.baidu.com";
		header(Location);
	}
?>
<?php include("closeDB.php");?>